<?php

namespace App\Http\Requests\Admin\Finance;

use Illuminate\Foundation\Http\FormRequest;

class CheckStoreRequest extends FormRequest
{
    public function __construct()
    {

    }

    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
//            'income' => 'required',
            'share_ratio_type' => 'required',
//            'channel_share_ratio' => 'required|numeric',
        ];
    }

    public function messages()
    {
        return [
//            'income.required' => '请输入总收入(渠道)',
            'share_ratio_type.required' => '请选择分成类型',
        ];
    }

    protected function prepareForValidation()
    {

    }
}
